package com.kyub.spring.gears;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


public class PrjLogger {

    public static void debug(Object source,String message){
       Log log = LogFactory.getLog(source.getClass());
       log.debug(message);
    }

    public static void warn(Object source,String message){
         Log log = LogFactory.getLog(source.getClass());
         log.warn(message);
    }

     public static void error(Object source,String message){
          Log log = LogFactory.getLog(source.getClass());
          log.error(message);
     }

    public static boolean isDebugEnabled() {
        return  LogFactory.getLog(PrjLogger.class).isDebugEnabled(); //TODO AGGIUNGRE PARAMETRO SOOURCE
    }
}
